﻿using Coldairarrow.Entity.DTO;
using Coldairarrow.Entity.IT;
using Coldairarrow.Util;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace Coldairarrow.Business.IT
{
    public partial interface IIT_RecordBookBusiness
    {
        Task<PageResult<IT_RecordBook>> GetDataListAsync(PageInput<ConditionDTO> input);
        Task<IT_RecordBook> GetTheDataAsync(string id);
        IQueryable<T> GetQueryable<T>() where T : class, new();
        Task AddDataAsync(IT_RecordBook data);
        Task UpdateDataAsync(IT_RecordBook data);
        Task DeleteDataAsync(List<string> ids);

        Task<PageResult<IT_RecordBookDTO>> GetDataListAsyncDtoList(PageInput<IT_RecordBookConditionDTO> input);
        Task<PageResult<IT_RecordBookDtoList>> GetIT_RecordBookList(PageInput<IT_RecordBookDtoListSeach> input);

        //Task<string> ImportAsync(List<IT_RecordBook> data);
        //Task<string> AddByTypeAsync(string refCode, string type);
        Task<string> AddDetailByTypeAsync(string detailId, string type);
    }
}